n = int(input())
lastGuess = 1
nextGuess = (lastGuess + n / lastGuess) / 2
while abs(lastGuess - nextGuess) > 0.0001:
    lastGuess = nextGuess
    nextGuess = (lastGuess + n / lastGuess) / 2
print(nextGuess)
